package core.rb.r;

import java.io.Serializable;

/*Author: John Archer, Contact: john.archer.jpa@gmail.com*/
public class Pol implements Serializable{
    private char chara, tChar, qChar;
    private int tLoc,  tInsCount;
    private double post;

    public Pol(char c, char q, int ts, int tic, char tChar) {
       this. chara = c;
        this.qChar = q;
        this.tLoc = ts;
        this.tInsCount = tic;
        this.post = 1.00;
        this.tChar = tChar;
    }

    public char getTChar(){return tChar;}
    public char getQChar(){return qChar;}
    public char getChar(){ return chara;}
    public int getTLoc(){return tLoc;}
    public int getQASCII(){return (int)qChar;}
    public int getTInsCount(){return tInsCount;}
    public boolean isIns(){return (tInsCount == 0) ? false : true;}
    public boolean isDel(){return (chara != '-') ? false : true;}
    public boolean isMis(){return (tInsCount == 0 && chara != '-') ? true : false;}
    public void setPost(double d){post = d;}
    public double getPost(){return post;}
}